package com.chiffoyqc.utils;

import java.util.ResourceBundle;

/**
 * Created by Administrator on 2017/6/20.
 */
public class PropertyUtils {

    public static String[] getResources(String propertyName,String ...resource) {
//        System.out.println(resource[1]);
        ResourceBundle resourceBundle = ResourceBundle.getBundle(propertyName);
        String[] resources = new String[resource.length];
        for(int i = 0 , len = resource.length ; i < len ; i++){
            resources[i] = resourceBundle.getString(resource[i]);
        }

        return resources;
    }

}
